import React from 'react';
import ProductList from './ProductList.js'
import CarList from './CarList.js'

class TodoApp extends React.Component{
	render(){
		return(
			<div>
				<ProductList getData={this.props.getData} list={this.props.list} addToCar={this.props.addToCar}/>
				<br />
				<CarList carlist={this.props.carlist} removeFromCar={this.props.removeFromCar}/>
			</div>
		)
	}
}

export default TodoApp;